#include <iostream>
using namespace std;

int power1(int n, int p) {
  int val = 1;
  while (p--)
    val *= n;
  return val;
}

int power2(int n, int p) {
  return (p <= 0) ? 1 : n*power2(n, p-1);
}

int main() {
  cout << power1(2,0) << endl;
  cout << power2(2,0) << endl;
}




